<template>
    <el-form-item :label="label" label-position="left">
        <el-switch v-model="value" v-bind="$attrs" size="default"/>
    </el-form-item>
</template>
<script setup lang="ts">
const value = defineModel()
const {label} = defineProps<{
    label:string
}>()
</script>
<style scoped>
.el-switch{
    height: 20px;
}
</style>